import {
    userlogin
} from '../../../request/app'
const state = {
    user: []
}
const mutations = {
    MUgetuser(state, payload) {
        state.user = payload
        sessionStorage.setItem('user', JSON.stringify(payload))
    }
}
const actions = {
    ACgetuser({
        commit
    }, payload) {
        // console.log(res, 'vuexxxxxxxxxx');
        commit('MUgetuser', payload)
    }
}
const getters = {
    getuser(state) {
        return state.user
    }
}
export default {
    state,
    mutations,
    actions,
    getters,
    namespaced: true
}